##############################################################################
#                                                                            #
# Copyright (c) 2008 Brenno de Winter (brenno@dewinter.com)                  #
# Small Sister Project: http://www.smallsister.org/                          #
#                                                                            #
# This program is licensed under the GNU General Public License V3,          #
# the full source code is included in the binary distribution.               #
##############################################################################

#Import system modules
import os           #Import standard OS-functionality
import sys          #Import system specific funtions
import wx           #The graphical user interface

#Import own modules
import config       #Import the default routines and settings
import ConfigParser
import sqlitebase

#Let's begin with setting everything straight
os.chdir(config.getScriptDir())

if not os.path.isdir("message-out") == True:
    os.makedirs("message-out")


if not os.path.isdir("message-in") == True:
    os.makedirs("message-in")

#Determine the platform
if sys.platform == 'win32':
    #This platform is a Windows-machine
    print"Windows"

if sys.platform == 'darwin':
    #This platform is a Macintosh-machine
    import detected_mac #A Mac has been detected load the specific functions
    detected_mac.CheckComplete()
    
cursor=sqlitebase.opendatabase()
